011 security

好吧,本次讲座让我们继续思考如何在使用了最后几种技术后我们将在哪里享受到安全的乐趣。
All right this lecture Let's go ahead and figure out how do we do security inside of wonder where we're going to have a treat after working with the last couple of technologies.

我们在这里看到的东西会让你大吃一惊,这真的太棒了。
What we see in here is just going to blow your mind it's really awesome.

让我们弄清楚这一点。
Let's figure this out.

让我们来看看。
Let's check it out.

我们首先要来这里进行项目。
We're going to start by coming in here to project.

让我们在这里配置这个钥匙链,当我们点击它时,就会弹出这个小向导。
And let's go up here to configure this key chain right here and when we click on that we get this little wizard popping up.

这基本上就是我们用来设置的东西。
This is basically what we're going to use to set things up.

我将保留此检查,以便每次我们进入这里时都不会自动显示此信息,因为在第一次之后,您真的不再需要此向导了。
I'm going to leave this check to not automatically show this every single time we get in here because after the first time you're really not going to need this wizard anymore.

因此,让我们单击下一步,我们要做的第一件事是再次启用安全系统,并且我们将再次仅在本地工作。
So let's click on next and the first thing we want to do is enable the security system next again and we're going to be working local only Next again.

然后我们需要配置一些安全组。
And then we need to configure some security groups.

因此,让我们继续单击“创建并配置”,我们就有了第一个名为 guest 的组帐户。
So let's go ahead and click on Create and configure and we have the first group account called guest.

它的安全级别从零一直到两百五十五级。
And it has security level from zero all the way up to two hundred fifty five.

我们真的不想要这样。
We don't really want that.

那么,为什么我们不继续将安全级别设置为零,我们不担心工程访问,我们只担心纯运行时访问的顶部部分。
So why don't we go ahead and set security level down to zero and we're not worried about engineering access we're only worried about this top portion of pure runtime access.

这就是我们的项目实际运行时所发生的情况。
That's what's happening whenever our project is actually live and running.

因此我们希望客人的安全级别为零。
So we want the guest to have security level zero.

因此,让我们继续开始一个新组,我们将其称为操作员,这些人我们都继续给他们,假设我们可以给他们高达 255 的访问权限,这样我们就让他们可以访问所有内容。
So let's go ahead and start a new group and we'll call this operators and these guys we all go ahead and give them let's say we could give them access up to 255 so we'll just let them have access to everything.

现在我们有了这两个组,即访客组和操作员组。
And now we've got these two groups we've got the guest group and the operator group.

那么这些团体是做什么的呢?
So what do these groups do.

好吧,让我们点击“确定”,然后再进行下一步。
Well let's hit OK and let's go next again.

现在我们在用户设置中,因此我们已经为成员创建了用户所属的组。
And now we're in our user settings so we've created groups for members for users to belong to.

现在我们将创建一些用户,从我们的访客开始,如果我们查看访客的设置,您会看到可用的组,我们仍然拥有操作员组,但我们不希望访客属于分配的组中的操作员。
Now we're going to create some users where we start with our guest and if we look at settings on the guest and you see the available groups we still have the operators group but we don't want guest to be in operators the assigned groups.

这些组中只有客人是其中的成员,且只有客人是其中的成员。
These are the groups of which the guest is a member the only one is guest.

因此,来宾作为来宾组的成员,并且来宾现在由于其组成员身份仅具有安全级别零访问权限。
So guests as a member of the guest group and guest now because of his group membership only has security level zero access.

好吧,让我们点击“确定”并创建一个新用户,我的新用户名将是我将使其变得简单,这样我以后就不必输入太多内容。
Well let's hit OK on that and create a new user my new user name is going to be I'm going to make it simple so I don't have to type a lot later.

我将为该用户指定用户名 A,密码为 a。
I'm just going to give this user the user name A and his password is going to be a.

当我确认用户 A 时,我就是这样。
And I'm when I confirm that User A.

我将单击此箭头并授予他访问操作员组的权限。
I'm going to click on this arrow and give him access to the operator's groups.

所以让我们继续并点击“确定”。
So let's go ahead and hit OK hit OK.

现在我创建了一个组,然后创建了一个用户,并将该用户放入组中,然后我将 Dibella 指定为访客。
Now I've created a group then I've created a user and I put the user in the group and then I Dibella stated guest.

因此,访客不再能够真正访问任何内容。
So guest no longer really has any access to anything.

然后我们可以点击下一步,这里的一切看起来都很好。
Then we can hit next and everything here looks good.

所以我会继续完成。
So I'll go ahead and finish.

现在我已经启用了安全系统并且设置了至少一个用户。
So now I've enabled the security system and I've set up at least one user.

现在我如何将安全性应用于我的组件。
Now how do I apply security to my components.

好吧,如果我右键单击此处的屏幕并进入屏幕属性,您知道我可以通过在此处更改此级别来将整个屏幕置于安全状态。
Well if I right click on my screen here and I go into screen attributes you know what I can put this whole screen on security just by changing this level right here.

所以我有从 0 到 255 的数字。
So I've got from zero up to 255.

如果我将其设置为 1 以上,那么访客将无法再进入屏幕,只有在我不想这样做时已登录的人才能进入屏幕。
And if I set this at anything above 1 then the guest will not be able to get into the screen anymore only somebody who's logged in while I don't want to do that.

但我真正想做的是继续对此处的文本框应用安全性。
But what I do want to do is I want to go ahead and apply security to this text box right here.

所以我想双击它,你会看到这里有与屏幕上相同的小安全空白。
So I want to double click on that and you see right here I've got the same little security blank that I had on my screen.

我只是将其提高到 1,尽管此时我是否在 1 处表示或在 处表示都没有关系。
And I'm just going to bump this up to one although at this point it wouldn't matter if I said it at 1 or if I said it at.

您知道 255,但我们将其保留为 1,然后从该值结束。
You know 255 but we'll just leave it at 1 and close out of there.

这将受到保护,但我没有办法登录。
This is going to be protected but I don't have a way to log in.

所以我需要一种方法来真正让人们登录并提供密码。
So I need a way to actually let the person log in and supply their password.

因此,让我们在这里输入符号,我将在这里出现两个按钮,这是我的登录按钮,我将暂时使用它。
So let's go in here the symbols and I'm going to come up here two buttons and this is where I've got my log on button and I'm going to go ahead and take that for the time being.

因此,让我们双击它并将其放在此处,然后我将保持原样,所以我完全喜欢它的设置方式。
So let's just double click that and drop it right here and then I'm going to leave that exactly the way it is so I like exactly the way that's set up.

让我们测试一下,看看它是如何工作的。
So let's test this and see how it works.

我要来到这里,单击我的运行,这是我的屏幕,看起来现在要么我们没有连接,要么我们的系统没有运行。
I'm gonna come up here and click on my run and here's my screen and it looks like right now either we are not connected or our system is not running.

那么,让我继续点击这里,看看发生了什么。
So let me go ahead and just tab over here and see what's going on.

让我们进入运行模式。
Let's go into run mode.

好的。
All right.

我将进入“审核”选项卡,然后继续运行系统,以便我们在屏幕上执行一些操作。
And I'll go into the review tab and I will just go ahead and get the system running so that we've got some action on the screen.

完美的。
Perfect.

现在当我们回来的时候。
Now when we come back.

好的。
All right.

这就是我们正在寻找的。
That's what we were looking for.

一切正常。
Everything's working.

因此,让我尝试更改一些内容,当我单击它时,您会看到它呈灰色,并且不允许我单击它或执行任何操作。
So let me try to change something and when I click on this you see it's kind of grayed out and it doesn't let me click on it or do anything.

因此,让我尝试登录并希望提供我的用户名 a 和密码 a hit。
So let me try to log on and want to furnish my user name a and my password of a hit.

好的。
OK.

看看那个。
And look at that.

现在这个文本框变成了白色,现在当我点击它时,我就得到了报名表。
Now this text box turned white and now when I click on it I have the entry form.

就是这样了。
So that's it.

它受密码保护。
It's password protected.

还有漂亮的小界面,我也可以用它来退出。
And nice little interface which I can also use to log back off.

果然我再次失去了访问权限。
And sure enough I lose access to that once again.

所以客人无法访问它。
So guests can't access that.

客人可以在此页面上执行任何其他操作,但无法更改。
Guests can do anything else on this page but guests cannot change that.

为了安全起见,这就是了。
So that's it for security.

这是一个非常简短的介绍,但应该为您提供完成项目所需的一切。
That's a very brief introduction but should give you everything that you need to complete your projects as we get to them.

本次讲座我们就到此结束。
And we'll wrap it up here for this lecture.

未来两年我会见到你。
I'll see you in the next two years.